﻿@model Easy.CMS.Article.ViewModel.ArticleTopWidgetViewModel
@{
    if (!Model.Widget.DetailPageUrl.IsNullOrEmpty())
    {
        Model.Widget.DetailPageUrl = Url.Content(Model.Widget.DetailPageUrl);
    }
    if (!Model.Widget.MoreLink.IsNullOrEmpty())
    {
        Model.Widget.MoreLink = Url.Content(Model.Widget.MoreLink);
    }
}
<div class="article-tops">
    <div class="list-group">
        @if (Model.Articles != null)
        {
            foreach (var item in Model.Articles)
            {
                <a class="list-group-item" href="@Url.PostUrl(Model.Widget.DetailPageUrl, item.ID)" target="_blank">                   
                        @item.Title
                </a>
            }
        }
    </div>
</div>
